Window Trigger

Window Watcher

See Also

Introduction to Triggers, Available Triggers

Description

Triggers the task when the specified window opens, closes, is focused or loses focus.

Practical Usage

Useful in a "back office" (or unattended) environment for monitoring the system for application generated error dialogs. These dialog boxes could be automatically handled when they occur and/or a notification message could be sent to the system administrator.

Return Value

When this trigger is activated - it automatically passes the AMTrigger object to the task.

The following properties are populated:

AMTrigger.Trigger
String
The name of the trigger that started the task.  For this trigger, the value is always "AMWINDOWTRIGGER".
AMTrigger.WindowTitle
String

Specifies the title of the Window in the foreground when the Window Watcher trigger was activated.
 

AMTrigger.WindowClass
String
 

Specifies the classname of the Window.  The classname is usually set by the application that is displaying the window.

AMTrigger.WindowHandle
Number
 

Specifies the handle of the Window in the foreground when the Window Watcher trigger was activated.